#include <stdio.h>
#include <stdlib.h>

extern "C" {
#include "../config/config.h"
#include "../libs/lib1/lib1.h"

#ifdef USE_MYMATH
#include "../libs/lib2/lib2.h"
#else
#include <math.h>
#endif
}

#include <iostream>
#include "../libs/classlib1/classlib1.hpp"

using namespace std;

int main()
{
	char str[20];

    int value1 = 0;
    #ifdef USE_MYMATH
        value1 = mypower(5, 3);
        sprintf(str, "self function = %d", value1);
    #else
        value1 = pow(5, 3);
        sprintf(str, "system function = %d", value1);
    #endif

    int value2 = 0;
    value2 = myadd(5, 3);
    sprintf(str, "value2 = %d", value2);

    class c1* instance = new c1();
    for(int i=0; i<5; i++){
    	instance->seta();
    }
    sprintf(str,"_a = %d", instance->geta());

    return 0;
}
